package com.xiaoxu.privatechat.entity.admin;

import com.xiaoxu.privatechat.entity.common.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * @description 数据库备份记录实体类
 * @date 2023/2/13
 * @author xiaoxu
 */
@Entity
@Table(name="pc_database_bak")
@EntityListeners(AuditingEntityListener.class)
public class DatabaseBak extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 备份的文件名
	 */
	@Column(name="filename",nullable=false,length=32)
	private String filename;
	/**
	 * 备份的文件路径
	 */
	@Column(name="filepath",nullable=false,length=128)
	private String filepath;

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	@Override
	public String toString() {
		return "DatabaseBak [filename=" + filename + ", filepath=" + filepath
				+ "]";
	}

	
	
	
	
	
	
	
	
}
